﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="AzukiMapUI.ExpressionSelect"
	d:DesignWidth="640" d:DesignHeight="480">

	<Grid x:Name="LayoutRoot" Background="#FFFFFFFF">
		<Grid.RowDefinitions>
			<RowDefinition x:Name="RowPointStyle" Height="26"/>
			<RowDefinition x:Name="RowPointWidth" Height="26"/>
			<RowDefinition x:Name="RowPointHeight" Height="26"/>
			<RowDefinition x:Name="RowPointCenter" Height="26"/>
			<RowDefinition x:Name="RowFillColor" Height="26"/>
			<RowDefinition x:Name="RowFillOpacity" Height="26"/>
			<RowDefinition x:Name="RowStrokeColor" Height="26"/>
			<RowDefinition x:Name="RowStrokeWidth" Height="26"/>
			<RowDefinition x:Name="RowStrokeOpacity" Height="26"/>
			<RowDefinition x:Name="RowStrokeStyle" Height="26"/>
			<RowDefinition x:Name="RowEndStyle" Height="26"/>
			<RowDefinition x:Name="RowJoinStyle" Height="26"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="124"/>
			<ColumnDefinition Width="16"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>

		<!-- labels -->
		<TextBlock Margin="4,0,0,0" Grid.Row="0" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Height="Auto"><Run Text="Point "/><Run Text="Style"/></TextBlock>
		<TextBlock Margin="4,0,0,0" Grid.Row="1" Text="Point Width" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Height="Auto"/>
		<TextBlock Margin="4,0,0,0" Grid.Row="2" Text="Point Height" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Height="Auto"/>
		<TextBlock Margin="4,0,0,0" Grid.Row="3" Text="Point Center" TextWrapping="Wrap" Width="120" Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Center"/>
		<TextBlock Margin="4,0,0,0" Grid.Row="4" Text="Fill Color" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Left" Width="120" Height="Auto"/>
		<TextBlock Margin="4,0,0,0" Grid.Row="5" Text="Fill Opacity" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Height="Auto"/>
		<TextBlock Margin="4,0,0,0" Grid.Row="6" Text="Stroke Color" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Height="Auto"/>
		<TextBlock Margin="4,0,0,0" Grid.Row="7" Text="Stroke Width" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Height="Auto"/>
		<TextBlock Margin="4,0,0,0" Grid.Row="8" Text="Stroke Opacity" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Height="Auto"/>
		<TextBlock Margin="4,0,0,0" Grid.Row="9" Text="Stroke Style" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Height="Auto"/>
		<TextBlock Margin="4,0,0,0" Grid.Row="10" Text="Stroke End Style" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Height="Auto"/>
		<TextBlock Margin="4,0,0,0" Grid.Row="11" Text="Stroke Join Style" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Height="Auto"/>
		
		<!-- error icons -->
		<Image x:Name="IconErrorPointWidth" Margin="0,0,0,0" Visibility="Collapsed" Grid.Column="1" Grid.Row="1" Source="../icons/error.png" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16"/>
		<Image x:Name="IconErrorPointHeight" Margin="0,0,0,0" Visibility="Collapsed" Grid.Column="1" Grid.Row="2" Source="../icons/error.png" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16"/>
		<Image x:Name="IconErrorPointCenter" Margin="0,0,0,0" Visibility="Collapsed" Grid.Column="1" Grid.Row="3" Source="../icons/error.png" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16"/>
		<Image x:Name="IconErrorFillOpacity" Margin="0,0,0,0" Visibility="Collapsed" Grid.Column="1" Grid.Row="5" Source="../icons/error.png" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16"/>
		<Image x:Name="IconErrorStrokeWidth" Margin="0,0,0,0" Visibility="Collapsed" Grid.Column="1" Grid.Row="7" Source="../icons/error.png" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16"/>
		<Image x:Name="IconErrorStrokeOpacity" Margin="0,0,0,0" Visibility="Collapsed" Grid.Column="1" Grid.Row="8" Source="../icons/error.png" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16"/>

        <!-- inputs -->
        <!--
		<Button x:Name="BtnPointStyle" Click="BtnPointStyle_Click" HorizontalAlignment="Left" Margin="4,0,0,0" Width="96" Grid.Column="2" Grid.Row="0" FontSize="8" Height="22" VerticalAlignment="Center">
			<StackPanel Height="22" Width="112" Orientation="Horizontal" VerticalAlignment="Center" Margin="2,0,0,0">
				<Path Data="M 100,0 A 100,100 0 1 1 -100,0 A 100,100 0 1 1 100,0 z" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" Height="8" Width="8" d:LayoutOverrides="GridBox" VerticalAlignment="Center" HorizontalAlignment="Left"/>
				<TextBlock Height="Auto" HorizontalAlignment="Left" Margin="4,0,0,0" VerticalAlignment="Center" Width="Auto" Text="circle" TextWrapping="Wrap" FontSize="11"/>
			</StackPanel>
		</Button>
        -->

		<TextBox x:Name="TbPointWidth" LostFocus="TbPointWidth_LostFocus" HorizontalAlignment="Left" Margin="4,0,0,0" Width="40" Grid.Column="2" Grid.Row="1" Text="24" TextWrapping="Wrap" VerticalAlignment="Center" Height="20"/>

		<TextBox x:Name="TbPointHeight" LostFocus="TbPointHeight_LostFocus" HorizontalAlignment="Left" Margin="4,0,0,0" Width="40" Text="24" TextWrapping="Wrap" Grid.Column="2" Grid.Row="2" VerticalAlignment="Center" Height="20"/>

		<StackPanel HorizontalAlignment="Left" Margin="4,0,0,0" Width="Auto" Grid.Column="2" Grid.Row="3" Orientation="Horizontal" Height="24" VerticalAlignment="Center">
			<TextBlock Width="6" Text="(" TextWrapping="Wrap" d:LayoutOverrides="Height" VerticalAlignment="Center" HorizontalAlignment="Left"/>
			<TextBox x:Name="TbPointCenterX" LostFocus="TbPointCenterX_LostFocus" TextWrapping="Wrap" Height="20" Width="32" VerticalAlignment="Center" HorizontalAlignment="Left"/>
			<TextBlock Width="6" Text="," TextWrapping="Wrap" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
			<TextBox x:Name="TbPointCenterY" LostFocus="TbPointCenterY_LostFocus" TextWrapping="Wrap" Height="20" Width="32"/>
			<TextBlock Width="6" Text=")" TextWrapping="Wrap" VerticalAlignment="Center" Height="Auto" HorizontalAlignment="Left"/>
		</StackPanel>

		<TextBox x:Name="TbFillOpacity" LostFocus="TbFillOpacity_LostFocus" HorizontalAlignment="Left" Margin="4,0,0,0" Width="40" Text="100" TextWrapping="Wrap" Grid.Column="2" Grid.Row="5" VerticalAlignment="Center" Height="20"/>

		<TextBox x:Name="TbStrokeWidth" LostFocus="TbStrokeWidth_LostFocus" HorizontalAlignment="Left" Margin="4,0,0,0" Width="40" Text="24" TextWrapping="Wrap" Grid.Column="2" Grid.Row="7" VerticalAlignment="Center" Height="20"/>

		<TextBox x:Name="TbStrokeOpacity" LostFocus="TbStrokeOpacity_LostFocus" HorizontalAlignment="Left" Margin="4,0,0,0" Width="40" Text="100" TextWrapping="Wrap" Grid.Column="2" Grid.Row="8" VerticalAlignment="Center" Height="20"/>

		<ComboBox x:Name="CbStrokeStyle" SelectionChanged="CbStrokeStyle_SelectionChanged" Height="20" Margin="4,0,0,0" VerticalAlignment="Center" SelectedIndex="0" HorizontalAlignment="Left" Width="96" Grid.Column="2" Grid.Row="9">
			<Path Width="50" Data="M0,0 L50,0" Stroke="#FF000000" StrokeThickness="2" VerticalAlignment="Center" Height="4" StrokeStartLineCap="Flat" HorizontalAlignment="Left"/>				
			<Path Width="50" StrokeDashArray="1,1,1,1" Data="M0,0 L50,0" Stroke="#FF000000" StrokeThickness="2" VerticalAlignment="Center" Height="4" StrokeStartLineCap="Flat" HorizontalAlignment="Left"/>				
			<Path Width="50" StrokeDashArray="2,2,2,2" Data="M0,0 L50,0" Stroke="#FF000000" StrokeThickness="2" VerticalAlignment="Center" Height="4" StrokeStartLineCap="Flat" HorizontalAlignment="Left"/>				
			<Path Width="50" StrokeDashArray="4,2,4,2" Data="M0,0 L50,0" Stroke="#FF000000" StrokeThickness="2" VerticalAlignment="Center" Height="4" StrokeStartLineCap="Flat" HorizontalAlignment="Left"/>				
			<Path Width="50" StrokeDashArray="8,2,2,2"  Data="M0,0 L50,0" Stroke="#FF000000" StrokeThickness="2" VerticalAlignment="Center" Height="4" StrokeStartLineCap="Flat" HorizontalAlignment="Left"/>				
		</ComboBox>
		
		<ComboBox x:Name="CbStrokeEndStyle" SelectionChanged="CbStrokeEndStyle_SelectionChanged" Margin="4,0,0,0" SelectedIndex="0" HorizontalAlignment="Left" Grid.Column="2" Grid.Row="10" VerticalAlignment="Center" Height="20" Width="96">
			<StackPanel Orientation="Horizontal">
				<Path Width="Auto" Data="M0,0 L20,0" Fill="#FFFFFFFF" Stroke="#FF000000" StrokeThickness="12" VerticalAlignment="Center" Height="Auto" StrokeStartLineCap="Flat" HorizontalAlignment="Left" Margin="6,6,0,0"/>				
				<TextBlock Text="Flat"/>
			</StackPanel>
			<StackPanel Orientation="Horizontal">
				<Path Width="Auto" Data="M0,0 L20,0" Fill="#FFFFFFFF" Stroke="#FF000000" StrokeThickness="12" VerticalAlignment="Center" Height="Auto" StrokeStartLineCap="Round" HorizontalAlignment="Left" Margin="6,6,0,0"/>				
				<TextBlock Text="Round"/>
			</StackPanel>
			<StackPanel Orientation="Horizontal">
				<Path Width="Auto" Data="M0,0 L20,0" Fill="#FFFFFFFF" Stroke="#FF000000" StrokeThickness="12" VerticalAlignment="Center" Height="Auto" StrokeStartLineCap="Square" HorizontalAlignment="Left" Margin="6,6,0,0"/>				
				<TextBlock Text="Square"/>
			</StackPanel>
			<StackPanel Orientation="Horizontal">
				<Path Width="Auto" Data="M0,0 L20,0" Fill="#FFFFFFFF" Stroke="#FF000000" StrokeThickness="12" VerticalAlignment="Center" Height="Auto" StrokeStartLineCap="Triangle" HorizontalAlignment="Left" Margin="6,6,0,0"/>				
				<TextBlock Text="Triangle"/>
			</StackPanel>
		</ComboBox>

		<ComboBox x:Name="CbStrokeJoinStyle" SelectionChanged="CbStrokeJoinStyle_SelectionChanged" Margin="4,0,0,0" SelectedIndex="0" HorizontalAlignment="Left" Grid.Column="2" Grid.Row="11" VerticalAlignment="Center" Height="20" Width="96">
			<StackPanel Orientation="Horizontal">
				<Path StrokeLineJoin="Miter" Width="25" Data="M10,15 L15,5 L20,15" Fill="{x:Null}" Stroke="#FF000000" StrokeThickness="4" VerticalAlignment="Center" Height="Auto" HorizontalAlignment="Left" Margin="0,0,0,0"/>
				<TextBlock Text="Miter" VerticalAlignment="Center"/>
			</StackPanel>
			<StackPanel Orientation="Horizontal">
				<Path StrokeLineJoin="Bevel" Width="25" Data="M10,15 L15,5 L20,15" Fill="{x:Null}" Stroke="#FF000000" StrokeThickness="4" VerticalAlignment="Center" Height="20" HorizontalAlignment="Left" Margin="0,0,0,0"/>
				<TextBlock Text="Bevel" VerticalAlignment="Center"/>
			</StackPanel>
			<StackPanel Orientation="Horizontal">
				<Path StrokeLineJoin="Round" Width="25" Data="M10,15 L15,5 L20,15" Fill="{x:Null}" Stroke="#FF000000" StrokeThickness="4" VerticalAlignment="Center" Height="20" HorizontalAlignment="Left" Margin="0,0,0,0"/>
				<TextBlock Text="Round" VerticalAlignment="Center"/>
			</StackPanel>
		</ComboBox>
		<Button x:Name="BtnStrokeColor" Click="BtnStrokeColor_Click" HorizontalAlignment="Left" Margin="4,0,0,0" Width="40" Grid.Column="2" Grid.Row="6" VerticalAlignment="Center" Height="22">
			<Rectangle x:Name="RtStrokeColor" Width="32" Fill="#FFFFFFFF" Stroke="#FF000000" Height="16" VerticalAlignment="Stretch"/>
		</Button>
		<Button x:Name="BtnFillColor" Click="BtnFillColor_Click" HorizontalAlignment="Left" Margin="4,0,0,0" Width="40" Grid.Column="2" Grid.Row="4" VerticalAlignment="Center" Height="22">
			<Rectangle x:Name="RtFillColor" Width="32" Fill="#FFFFFFFF" Stroke="#FF000000" Height="16"/>
		</Button>

	</Grid>
</UserControl>